#include <stdio.h>
using namespace std;
int main()
{
	long int a,b;
	while(scanf("%ld%ld",&a,&b)!=EOF){
		long int temp;
		temp=a-b;
		temp=temp>0?temp:-temp;
		printf("%ld\n",temp);
	}
	return 0;
}

